﻿package net.wangit.demo.unit;

import net.wangit.MapList;
import net.wangit.support.MapListFactory;
import net.wangit.util.RandomUtil;

public class SampleDataMapListFactory implements MapListFactory {
  //根据需要创建MapList
  public MapList getMapList() {
    MapList data = new MapList();
    for (int i = 0; i < 5; i++) {
      data.put(i, "a", RandomUtil.getRandomString(5));
      data.put(i, "b", RandomUtil.getRandomString(5));
      data.put(i, "c", RandomUtil.getRandomString(5));
      data.put(i, "d", RandomUtil.getRandomString(5));
    }
    return data;
  }
}
